<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .box{width:200px;height:100px;border:solid 1px black;display:flex;justify-content: center;align-items: center;}
    </style>
</head>
<body>

</body>
<script>

    var t = "radio";

    document.write('<div class="box"><input type="'+ t +'"></div>');
    
    // console.log( eval("1+1") );
    // console.log( JSON.parse('{"name":"admin"}') )
    
</script>
</html>